import React from "react";
import {Button, Flex} from "antd";

/**
 * 汇总信息面板
 * @param {Object} props
 * @param {function} props.onClose - 关闭回调
 * @param {function} props.onDownLoad - 下载回调
 */
export function SummaryInfoPanel({onClose, onDownLoad}) {
  return (
    <Flex justify="flex-end" gap="middle" style={{marginBottom: 16}}>
      <Button onClick={onDownLoad} type="primary">
        下载
      </Button>
      <Button onClick={onClose}>关闭</Button>
    </Flex>
  );
}
